/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package humanNetwork;

import java.util.HashMap;
/**
 *
 * @author jamie
 */
public class Node {

    private final int id;
    private HashMap<String, Object> annots = new HashMap<String, Object>();





    public Node(int id) {
        this.id = id;
    }



    public HashMap<String, Object> getAnnots() {
        return annots;
    }


    public int getId() {
        return id;
    }

    public void setAnnots(HashMap<String, Object> annnots){
        this.annots = annnots;
    }

    public void addAnnot(String key, Object annot){
        annots.put(key, annot);
    }

    public Object getAnnot(String key){
        return annots.get(key);
    }

    @Override
    public boolean equals(Object other){
        Node otherNode = (Node) other;
        return(this.getId()== otherNode.getId());
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 41 * hash + this.id;
        return hash;
    }




}